import { request } from '@/framework/utils/request-jdz';

export const pageThirdDevice = (data) => {
  return request(
    {
      url: '/thirdDevice',
      method: 'get',
      params: data,
    },
    {
      isGetDataDirectly: false,
    },
  );
};

// 修改三方设备
export const putThirdDevice = (params) => {
  return request({
    url: `/thirdDevice/${params.id}`,
    method: 'put',
    data: params,
  });
};

// 新增三方设备
export const postThirdDevice = (params) => {
  return request({
    url: '/thirdDevice',
    method: 'post',
    data: params,
  });
};

// 删除三方设备
export const delThirdDevice = (data) => {
  return request({
    url: '/thirdDevice/' + data,
    method: 'delete',
    data: data,
  });
};
